﻿using System.Diagnostics;

namespace CSharpHelpers.Commons
{
    class ProcessHelper
    {
        public static bool IsExistProcess(Process pClass)
        {
            Process[] arrProcesses = Process.GetProcessesByName(pClass.ProcessName);
            return arrProcesses.Length > 1;
        }

        public static void StartProcess(Process pClass)
        {

        }

        public static void CloseProcess(Process pClass)
        {

        }
    }
}
